package com.wcar.sso.feign;

import com.wcar.common.entity.User;
import com.wcar.sso.feign.factory.UserFeignFactory;
import com.wcar.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "wcar-system",fallbackFactory = UserFeignFactory.class)
public interface UserFeign {
    @GetMapping("/system/user/selectByName/{name}")
    public Result<User> selectByName(@PathVariable String name);

}
